package com.czk.model.decoratot;

public class Decoretor extends Drink {
    private Drink drink;
    @Override
    public float cost() {
        // getprice自己的价格
        return getPrice()+drink.cost();
    }
    public Decoretor(Drink drink){
        this.drink=drink;
    }

    @Override
    public String getDes() {
        return super.getDes()+"  "+super.getPrice()+"  "+super.getDes();
    }
}
